
import { MongooseFactory } from "../kalend";
import { Schema } from "mongoose";

/** 邀请二维码记录 */
const schema = MongooseFactory.Schema({
    // 用户id
    userid: {
        type: Schema.Types.ObjectId,
        ref: "customer_account"
    },
    // url
    url:{
        type: String
    },
    qrcodeurl:{
        type: String
    },
    // 分享次数
    count: {
        type: Number,
        default: 1
    }
});



export const qrcodeModel = MongooseFactory.Model("qrcode", schema);